package com.mtask.web.repository;

import com.mtask.common.entity.task.TaskGroup;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface TaskGroupRepository extends JpaRepository<TaskGroup, Integer> {
    @Modifying
    @Query("delete from TaskGroup t where t.id = ?1")
    void customDeleteById(Integer id);
}
